#include "../include/MyTcpClient.hpp"
#include <memory>

int main(int argc, const char** argv) {
    if(argc <= 2)
    {
        printf("usage:%s ip_address port_number\n",basename(argv[0]));
        return 1;
    }
    const char* ip = argv[1];
    int port = atoi(argv[2]);
    std::shared_ptr<TcpClientSock> client = std::make_shared<MyTcpClient>(ip,port);
    client->ConnectSock();
    client->MessageLoop();
    return 0;
}